﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Projektarbete.AI;
using Microsoft.Xna.Framework;

namespace Projektarbete
{
    class MerchantBase
    {
        private Texture2D spriteSheet;
        private Vector2 position;
        public Vector2 getPosition
        {
            get { return position; }
        }
        public MerchantInventory inventory;

        public MerchantBase(Texture2D spriteSheet, Vector2 position)
        {
            this.spriteSheet = spriteSheet;
            this.position = position;

            inventory = new MerchantInventory();
        }

        public MerchantBase(Texture2D spriteSheet, Vector2 position, Item[] inventoryContents)
        {
            this.spriteSheet = spriteSheet;
            this.position = position;

            inventory = new MerchantInventory(inventoryContents);
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            //TODO: ANIMATION ??
            spriteBatch.Draw(spriteSheet, position, Color.White);
        }
    }
}
